<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<div id="navWrapper">
	<div id="navInnerBottom">
		<sec:authorize ifAnyGranted="ROLE_ADMIN,ROLE_USER">
			<div id="navigation">
				<p>
					<a class="navCollection" href="${baseUrl}/collection">My Collection</a>
					
					<a class="navFriends" href="${baseUrl}/friends">Friends</a>
					
					<a class="navProfile" href="${baseUrl}/profile">Profile</a>
					<div class="clear"></div>
				</p>
			</div>
			<div id="loginInfo">
				<p>You are logged in as <strong><sec:authentication property="principal.username" /></strong>,
				<a href="${baseUrl}/logout">Log out</a></p>
			</div>
			<div class="clear"></div>
		</sec:authorize>
	</div>
</div>

<c:if test="${!empty infoMessage}"><div class="sessionMessage info"><p>${infoMessage}</p></div></c:if>
<c:if test="${!empty warningMessage}"><div class="sessionMessage warning"><p>${warningMessage}</p></div></c:if>
<c:if test="${!empty errorMessage}"><div class="sessionMessage error"><p>${errorMessage}</p></div></c:if>
	
